<template>
  <div>
    <hr>
    这是Layout
    <hr>
    <button @click="navToWode">点击传参并跳转</button>
  </div>
</template>

<script>
export default {
  name: 'Layout',
  methods: {
    navToWode () {
      log('传参')
      this.$router.push({
        name: 'Wode',
        params: {
          word: '参数一'
        },
        query: {
          word: '参数二'
        }
      })
    }
  }
}
</script>

<style scoped>

</style>
